﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="BBSIndex.aspx.cs" Inherits="ZHDJ.Web.Portal.Forum.BBSIndex" %>

<%@ Import Namespace="ZHDJ.Core.Util" %>
<%@ Import Namespace="ZHDJ.WebPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="../../Resource/themes/Default/CSS/party.common.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/themes/Default/CSS/portal.widgets.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/themes/Default/CSS/admin.buttons.css" rel="stylesheet" type="text/css" />
    <script src="../../Resource/js/jquery/jquery.pagination.js" type="text/javascript"></script>
    <link href="../../Resource/themes/default/css/party.portal.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {       
			function UrlRefresh(url) {
				window.parent.location.href = url;
			}
		});
    </script>
    <style type="text/css">       

		.bbs-info {
			color: #999;
		}

		.bbs-info a {
			color: #999;
		}

		.bbs-info a:hover {
			text-decoration: underline;
		}

        .bbs-more a {
            color: Black;
        }

        .bbs-more a:hover {
            text-decoration: underline;
        }
        /*bbs-tab-4 button end*/
        .menu {
            background-color: #fbf2e3;
            border: #ec8783 1px solid;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<div class="party-navigation" style="border: none;">
        当前位置：<a href="../../Default.aspx">首页</a> > <a href="BBSIndex.aspx">论坛首页</a>
    </div>
	<div class="bgline"></div>
    <div class="mywrap">
        <div class="mywrapleft">论坛首页</div>
    </div>
    <div class="div71Filter">
        <ul>
            <li><a href="MyHistoryList.aspx">我的发帖</a></li>
            <li><a href="MyReplyList.aspx">我的回帖</a></li>
            <li><a href="MyBrowseList.aspx?PageTag=MyBrowse">我的访问 </a></li>
            <li><a href="UserInfo.aspx">我的信息</a></li>
        </ul>
    </div>
    <div class="BBS-Title">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="width:30%;">
					<div class="mysmwrap">
						<div class="mysmwrapleft">今日聚焦</div>
					</div>
                </td>
                <td style="width:30%;">
                    <div class="mysmwrap">
						<div class="mysmwrapleft">热帖排行</div>
					</div>
                </td>
                <td style="width:40%;">
                    <div class="mysmwrap">
						<div class="mysmwrapleft">新帖速递</div>
					</div>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;">
                    <asp:Repeater ID="rptToDayTop" runat="server">
                        <HeaderTemplate>
                            <ul class="list">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <li class="list-item">
								<a target="_blank" href='BBSReplyDetails.aspx?ForumID=<%#Eval("ID")%>' title='<%#Eval("ForumTitle")%>'><%# Eval("ForumTitle")%></a>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
                <td>
                    <asp:Repeater ID="rptHot" runat="server">
                        <HeaderTemplate>
                            <ul class="list">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <li class="list-item">
                                <a target="_blank" href='BBSReplyDetails.aspx?ForumID=<%#Eval("ID")%>' title='<%#Eval("ForumTitle")%>'><%# StringHelper.SubstringShort(Convert.ToString(Eval("ForumTitle")),18) %></a>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
                <td>
                    <asp:Repeater ID="rpNew" runat="server">
                        <HeaderTemplate>
                            <ul class="list">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <li class="list-item">
                                <span style="color: Red; margin-right: 10px;"><%#string.Format("[{0}]", Eval("Title"))%></span>
								<a target="_blank" href='BBSReplyDetails.aspx?ForumID=<%#Eval("ID")%>' title='<%#Eval("ForumTitle")%>'><%# StringHelper.SubstringShort(Convert.ToString(Eval("ForumTitle")),24) %></a>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </div>
    <div class="BBS-List DivWidth" style="margin-top: 10px;">
        <asp:Repeater ID="rptBigForumType" runat="server">
            <HeaderTemplate>
            </HeaderTemplate>
            <ItemTemplate>
				<div class="mywrap">
					<div class="mywrapleft"><%#Eval("Title")%></div>
					<div class="mywrapright">
						今日: <span style="color: Red"><%#Eval("TodayForumCount")%></span> | 主题: <span style="color: Red"><%#Eval("PostCount")%></span> | 帖子: <span style="color: Red"><%#Convert.ToInt32(Eval("ForumCount"))%></span>
					</div>
				</div>
                <asp:DataList ID="dltForumInfo" runat="server" RepeatDirection="Horizontal" RepeatColumns="3">
                    <ItemTemplate>
                        <table style="width:320px;margin-top: 10px; margin-left: 10px">
                            <tr>
                                <td rowspan="3" style="width: 60px;vertical-align: top;">
                                    <img style="width: 60px; height: 60px" alt="" src="<%# UpFileBusiness.GetFileUrl(Convert.ToString(Eval("ImageUrl")))%>" />

                                </td>
                                <td style="vertical-align: middle;">
                                    <span style="font-weight: bold; font-size: 14px">
                                        <a href="BBSList.aspx?TypeID=<%#Eval("ID")%>"
                                            title=' <%# Eval("Title")%>'>
                                            <%# Eval("Title")%>
                                        </a>
                                    </span><span style="color: Red;">
                                        <%# string.Format("(今日：{0})", Eval("TodayForumCount"))%></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="bbs-info">主题：<%#Eval("PostCount")%>,帖子：<%#Eval("ForumCount")%></td>
                            </tr>
                            <tr>
                                <td class="bbs-info">新帖： <a href='BBSReplyDetails.aspx?ForumID=<%#Eval("NewForumID")%>' title='<%#Eval("NewForumTitle")%>'>
                                    <%#Eval("NewForumTitle")%> </a>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <FooterTemplate>
                        <div style="height: 20px">
                        </div>
                    </FooterTemplate>
                </asp:DataList>
            </ItemTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
